cmake_minimum_required(VERSION 2.8.3)
project(face_tracker_pkg)

find_package(catkin REQUIRED COMPONENTS
  cv_bridge
  image_transport
  roscpp
  rospy
  sensor_msgs
  std_msgs
  message_generation
  serial
)

find_package(Boost REQUIRED COMPONENTS system)

find_package(OpenCV REQUIRED COMPONENTS core imgproc highgui objdetect)



add_message_files(
   FILES
   centroid.msg
 )


## Generate added messages and services with any dependencies listed here
 generate_messages(
   DEPENDENCIES
   std_msgs
  
 )

catkin_package(
  CATKIN_DEPENDS roscpp rospy std_msgs message_runtime 

)


include_directories(
  ${catkin_INCLUDE_DIRS}
)


add_executable(face_tracker_node src/face_tracker_node.cpp)
target_link_libraries(face_tracker_node
   ${catkin_LIBRARIES}
   ${OpenCV_LIBRARIES}
 )

add_executable(face_tracker_controller src/face_tracker_controller.cpp)
target_link_libraries(face_tracker_controller
   ${catkin_LIBRARIES}
   ${OpenCV_LIBRARIES}
 )






